Skip to content

Update window management and app sandboxing.#47

Merged
kristinaquinones merged 3 commits intoapple-store-distrofrom
main
Jan 6, 2026
Merged

Update window management and app sandboxing.#47
kristinaquinones merged 3 commits intoapple-store-distrofrom
main

Conversation

@kristinaquinones
Copy link
Contributor

This pull request introduces significant improvements to window management and app sandboxing in the tibok macOS app. The changes enhance how the main window is reopened, improve SwiftUI integration with AppKit for window control, and update the app's entitlements for better security and user file access.

Window management and SwiftUI/AppKit integration:

  • Added a new MainWindowContent SwiftUI view and refactored the main window scene to use it, enabling better control over window actions and capturing the openWindow environment action for use outside SwiftUI. [1] [2]
  • Introduced an AppDelegate class to handle dock icon clicks, allowing the app to reopen the main window when all windows are closed. [1] [2]
  • Implemented a reopenMainWindow() function and a WindowAccessor singleton to bridge SwiftUI and AppKit for window reopening, including a new "Main Window" menu item with a keyboard shortcut. [1] [2]

App sandboxing and entitlements:

  • Updated tibok-appstore.entitlements to enable app sandboxing, allow user-selected file read/write access, and permit network client access, removing the previous temporary file access exception.

Other UI and command improvements:

  • Refactored command groups to organize menu items, including separating the Find menu and adding a dedicated command for reopening the main window. [1] [2]

kristinaquinones and others added 3 commits January 6, 2026 06:22
- Remove com.apple.security.temporary-exception.files.absolute-path.read-only
  from App Store entitlements (Guideline 2.4.5(i))
- Add Window > Main Window menu item to reopen closed window (Guideline 4)
- Add AppDelegate to handle dock icon click when no windows visible

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fix App Store rejection: remove entitlement exception, add Window menu
@kristinaquinones kristinaquinones merged commit eddc85c into apple-store-distro Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant